{extend name="public:layout" /}
{block name="title"}代码生成器{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> 数据表列表</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="toolbar">
                <form class="form-inline" id="searchForm" method="post">
                    <div class="form-group">
                        <div class="input-group">
                            <input class="form-control" type="text" placeholder="请输入表前缀" name="pre" value="{$pre}"/>
                        </div>
                    </div>
                    <button type="submit" class="btn btn-info">
                        <i class="fa fa-search"></i> 搜索
                    </button>
                    <a class="btn btn-white" href="{:url('index')}">
                        <i class="fa fa-trash"></i> 清空
                    </a>
                </form>
            </div>
            <table class="table table-bordered table-hover">
                <tr>
                    <th>表名</th>
                    <th>数据量</th>
                    <th>编码</th>
                    <th>备注</th>
                    <th width="220">操作</th>
                </tr>
                {volist name="tables" id="vo"}
                <tr>
                    <td>{$vo.table_name}</td>
                    <td>{$vo.table_rows}</td>
                    <td>{$vo.table_collation}</td>
                    <td>{$vo.table_comment}</td>
                    <td>
                        <a href="{:url('setController',['table_name'=>$vo['table_name']])}">生成控制器</a>
                        <a href="{:url('setModel',['table_name'=>$vo['table_name']])}">生成模型</a>
                        <a href="{:url('setHtml',['table_name'=>$vo['table_name']])}">生成html</a>
                    </td>
                </tr>
                {/volist}
            </table>
        </div>
    </div>
</div>
{/block}
{block name="script"}{/block}